{include file="public/header" /}
<style type="text/css">.gray-bg{ background: #fff; } .wrapper{ padding:0px;}</style>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox-content">
                <form class="form-horizontal" method="post">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">显示位置：</label>
                        <div class="col-sm-8">
                            <select class="form-control" name="tid">
                                <option value="0">顶级位置</option>
                                {volist name="data" id="v"}
                                <option value="{$v.id}" {if (isset($name.tid) and $v.id eq $name.tid) or (input('typeid', 0) eq $v.id)}selected="selected"{/if}>{:str_repeat("&nbsp;&nbsp;&nbsp;&nbsp;", $v['depth'])}{gt name="$v['depth']" value="0"}┠&nbsp;&nbsp;{/gt}{$v.title}</option>
                                {/volist}
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">菜单名称：</label>
                        <div class="col-sm-8">
                            <input name="title" type="text" class="form-control" value="{$name.title|default=""}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">图标icon：</label>
                        <div class="col-sm-8">
                            <div class="input-group">
                                <input name="icon" type="text" id="fontawesome" class="form-control" value="{$name.icon|default=""}" />
                                <span class="input-group-btn">
                                        <button type="button" class="btn btn-primary" id="font-icons">图标</button>
                                </span>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">菜单排序：</label>
                        <div class="col-sm-8">
                            <input name="des" type="text" class="form-control" value="{$name.des|default="0"}" />
                            <span class="help-block m-b-none">数字大越靠前</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">左边：</label>
                        <div class="col-sm-8">
                            <div class="radio i-checks">
                                <label>
                                    <input type="radio" value="1" name="hideleft" {if empty($name.hideleft) or $name.hideleft eq 1}checked="checked"{/if} />显示菜单
                                </label>
                                <label>
                                    <input type="radio" value="0" name="hideleft" {if isset($name.hideleft) and $name.hideleft eq 0}checked="checked"{/if} />隐藏菜单
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">右边：</label>
                        <div class="col-sm-8">
                            <div class="radio i-checks">
                                <label>
                                    <input type="radio" value="1" name="hideright" {if isset($name.hideright) and $name.hideright eq 1}checked="checked"{/if} />显示菜单
                                </label>
                                <label>
                                    <input type="radio" value="0" name="hideright" {if empty($name.hideright) or $name.hideright eq 0}checked="checked"{/if} />隐藏菜单
                                </label>
                            </div>
                        </div>
                    </div>
                    <hr>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">控制器：</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" name="controller" value="{$name.controller|default=""}" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">函数：</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" name="function" value="{$name.function|default=""}" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">GET变量：</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" name="get" value="{$name.get|default=""}">
                            <span class="help-block m-b-none">例: http://www.duoduoxia.cn/控制器/函数/GET变量/.html GET值会自动获取显示,多个变量填写 | </span>
                        </div>
                    </div>
                    <input type="hidden" name="id" value="{$name.id|default="0"}" />
                </form>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
{load href="__STYLE__/admin/plugins/iCheck/icheck.min.js"}
{load href="__STYLE__/admin/plugins/iCheck/custom.css"}
<script type="text/javascript">
$(document).ready(function(){
    $(".i-checks").iCheck({
        checkboxClass: "icheckbox_square-green",
        radioClass: "iradio_square-green",
    });
    $("#font-icons").click(function(){
        layer.open({
            type: 2,
            title: 'fontawesome图标',
            shadeClose: true,
            shade: 0.2,
            area: ['95%', '74%'],
            content: '{:url("index/fontawesome")}',

            shift:-1,
            scrollbar: false,
            moveType: 1,
            moveOut: true,

        });
    });
});
</script>
{include file="public/bottom" /}
